<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第四章 上机练习3</title>
</head>
<body>
    <script>
        var txt =prompt("请输入周一到周日");
        switch(txt){
            case "周一":
                alert("上班,开会"); break;
            case "周二":
                alert("上班,团队讨论需求"); break;
            case "周三":
                alert("上班,制定方案"); break;
            case "周四":
                alert("上班,编写程序"); break;
            case "周五":
                alert("上班,汇报工作"); break;
            case "周六":
                alert("休息"); break;
            case "周七":
                alert("休息"); break;
            default:
                alert("暂不支持"); break;
        }
    </script>
</body>
</html>